import createAxios from '/@/utils/axios'

const controllerUrl:string = 'upload/'

export function image(data: anyObj): ApiPromise {
    return createAxios({
        url: controllerUrl + 'image',
        data: data,
        method: 'POST'
    }) as ApiPromise
}

export const imageUrl:string = controllerUrl + 'image'